home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / clipper / ks94an.zip / CDBL2CLD.HDR < prev    next >
Text File  |  1994-04-25  |  1KB  |  44 lines

  1. /******************************************************************************
  2.                  The Klipper Library, for CA-Clipper 5.x
  3.         Copyright (c), 1994, Wallace Information Systems Engineering
  4.  
  5. FUNCTION:
  6.  
  7. _CDblToCLD( cByteStr ) --> dDate
  8.  
  9. PARAMETERS:
  10.  
  11. cByteStr : Eight bytes string to convert to Clipper date type.
  12.  
  13. SHORT:
  14.  
  15. C Double to Clipper Date
  16.  
  17. DESCRIPTION:
  18.  
  19. Clipper stores dates as an eight byte double.
  20.  
  21. _CDBLtoCLD() converts a native "C" Double Precision Integer to it's
  22. equivalent Clipper Date.  It is used primarily for reading date variables
  23. that have been stored in .MEM files.
  24.  
  25. The cByteStr must be obtained by way of a direct disk-read of bytes, or by
  26. way of a return value from a "C" function.
  27.  
  28. NOTE:
  29.  
  30. This function supports _MemToArray() in MEMARRAY.PRG  Refer to that function
  31. for usage examples.
  32.  
  33. EXAMPLE:
  34.  
  35. fread(nFHandle,@BYTES,8)
  36.  
  37. t = _CDBLtoCLD(BYTES)
  38.  
  39. Result:
  40.  
  41. t = <a Clipper Date type>
  42.  
  43. ******************************************************************************/
  44.